package com.gite.nouette.admin.implementation.controller;

import com.gite.nouette.admin.contract.controller.ICAdmin;
import com.gite.nouette.admin.contract.controller.ICManager;
import com.gite.nouette.admin.contract.model.IAdmin;
import com.gite.nouette.admin.contract.model.IManager;
import com.gite.nouette.admin.contract.view.IVAdmin;

public class CAdminImpl extends AbstractController<IVAdmin, IAdmin> implements
		ICAdmin {

	@Override
	public boolean addManager(IManager manager) {
		return addCManager((ICManager) manager);
	}

	@Override
	public boolean addCManager(ICManager cManager) {
		boolean added = true;
		added &= getM().addManager(cManager);
		added &= getV().addManager(cManager.getV());

		return added;
	}

	@Override
	public void init() {
		super.init();
	}
}
